package com.sevenGroup.pawnshop.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sevenGroup.pawnshop.model.Stores;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author sevenGroup
 * @since 2022-02-16
 */
public interface StoresDao extends BaseMapper<Stores> {

    @Select("<script> SELECT store_id,store_name,store_address,store_contact,store_tel,store_state FROM stores </script>")
    IPage<Stores> selectAllStores(Page<Object> ObjectPage);

    List<Stores> selectStoreAndAllWarehouses(Integer storeId);
}
